package cn.csg.ams.collect2.poptopics.infrastructure.constant;

/**
 * 用户类别
 */
public class UserCategoryConstant {

    /**
     * 低压用户
     */
    public static final String LOW_USER = "20";

    /**
     * 专变台区
     */
    public static final String SPECIALTY_TA = "10";

    /**
     * 专变台区
     */
    public static final String SPECIALTY_TA2 = "11";

    /**
     * 分支
     */
    public static final String BRANCH = "xxx";

    /**
     * 公变台区
     */
    public static final String PUBLIC_TA = "60";

    /**
     * 线路
     */
    public static final String LINE = "80";


    /**
     * 是否为专变台区
     *
     * @param userCategory 用户类型
     * @return boolean
     */
    public static boolean isSpecialtyTa(String userCategory) {
        if (userCategory == null) {
            return false;
        }
        return SPECIALTY_TA.equals(userCategory) || SPECIALTY_TA2.equals(userCategory);
    }

}
